package com.feige.weibo.apiservice;

import com.feige.weibo.beans.Status;
import com.sina.weibo.sdk.auth.Oauth2AccessToken;

import java.util.List;
import java.util.Map;

import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.Path;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
import rx.Observable;

/**
 * Created by Administrator on 2016/10/23.
 */

 public  interface ApiServer {

    /**
     * 下载微博
     */

    @Headers("Content-Type: application/json")
    @GET("{url}")
    Observable<List<Status>> getWeibo(
            @Path("url") String url,
            @QueryMap Map<String,String> map
    );

}
